<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/9
  Time: 9:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/layui/css/layui.css">
<html>
<head>
  <title>add</title>
</head>
<body>
<script src="${pageContext.request.contextPath}/statics/layui/layui.js"></script>

<form class="layui-form" action="add" method="post" <%--onsubmit="return false"--%>>
  <div style="color: red">${errorMsg}</div>
  <div class="layui-form-item">
    <label class="layui-form-label">供货商编号</label>
    <div class="layui-input-inline">
      <input type="text" name="supCode" required  lay-verify="required" placeholder="请输入供货商编号" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">供货商名称</label>
    <div class="layui-input-inline">
      <input type="text" name="supName" required  lay-verify="required" placeholder="请输入供货商名称" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">供货商描述</label>
    <div class="layui-input-block">
      <input type="text" name="supDesc" required  lay-verify="required" placeholder="请输入供货商描述" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">供货商联系人</label>
    <div class="layui-input-inline">
      <input type="text" name="supContact" required  lay-verify="required" placeholder="请输入供货商联系人" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">供货商联系方式</label>
    <div class="layui-input-inline">
      <input type="text" name="supPhone" required  lay-verify="required" placeholder="请输入供货商联系方式" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">供货商地址</label>
    <div class="layui-input-inline">
      <input type="text" name="supAddress" required  lay-verify="required" placeholder="请输入供货商地址" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">传真</label>
    <div class="layui-input-inline">
      <input type="text" name="supFax" required  lay-verify="required" placeholder="请输入传真" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>

</form>
<%--<script>
  layui.use('form', function(){
    var form = layui.form;
    form.on('submit(formDemo)', function(data){
      layer.msg(JSON.stringify(data.field));
      return false;
    });
  });
</script>--%>
</body>
</html>